<?php
class FtpException extends Exception {
	const FTP_CONNECT_FAIL = 1001;
	const FTP_LOGIN_FAIL = 1002;
	
	public function __construct($code) {
		$message = "FTP_ERR_{$code}";
		parent::__construct($message, $code);
	}
}
?>